<template>
  <div class="container-pt">
    <van-nav-bar fixed title="修改用户资料" @click-left="$router.back()"  left-arrow/>
    <van-cell is-link  title="头像">
      <van-image
        width="30"
        height="30"
        round
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
      />
    </van-cell>
    <van-cell is-link  value="admin" title="昵称">{{list.username}}</van-cell>
    <van-cell  is-link value="18868816185" title="手机号">{{list.mobile}}</van-cell>
    <van-cell is-link  value="男" title="性别">{{list.sex=1?'男':'女'}}</van-cell>
    <van-cell is-link value="2011-12-12"  title="出生年月">{{list.birthday}}</van-cell>
    <van-cell is-link  :label="list.address"  title="家庭住址"></van-cell>
    <van-cell  is-link  :label="list.notes" title="个性留言"></van-cell>
  </div>
</template>

<script>
import { userInfo } from "@/api/user"
// import { userUpdate } from "@/api/user"
export default {
  data() {
    return {
			list:[]
    }
  },
   async created () {
    this.hasLogin = localStorage.getItem('USER_INFO')
    const res=await userInfo()
		console.log(res.data.data.userInfo)
    this.list=res.data.data.userInfo
  }
}
</script>

<style>

</style>